package com.tongfusoft.document.web.error.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class ErrorPageController {

	@RequestMapping("error/docViewDetail")
	public String docReadPowerError(Model model) {

		model.addAttribute("mainPageKey", "docViewDetailError");
		model.addAttribute("mainPage", "error/docViewDetailError");
		return "base";
	}

	@RequestMapping("error/docUpdateError")
	public String docUpdateError(Model model) {

		model.addAttribute("mainPageKey", "docViewDetailError");
		model.addAttribute("mainPage", "error/docViewDetailError");
		return "base";
	}

	@RequestMapping(value="/login",params="error")
	public String loggerEror(Model model) {

		
		return "loginError";
	}
	
			
			
}
